import React, { Component } from 'react'
import {Route,Switch,Redirect} from 'react-router-dom';
import routes from './routes';
import './utils/rem';
export default class App extends Component {
    render() {
        return (
            <div>
                <Switch>
                    {
                        routes.map(item =>  <Route {...item}  key={item.path} /> )
                    }
                    <Redirect to="/login" />
                </Switch>
            </div>
        )
    }
}
